﻿using System.ComponentModel.DataAnnotations;

namespace Md.Api.Model.Manage.MdProductOrder.Request;
/// <summary>
/// 分页获取订单列表请求实体
/// </summary>
public class RequestGetMdProductOrderPageListModel : RequestBaseModel
{
    /// <summary>
    /// 产品编号
    /// </summary>
    public long ProductId { get; set; }
    /// <summary>
    /// 用户编号
    /// </summary>
    public long UserId { get; set; }
    /// <summary>
    /// 收货地址
    /// </summary>
    public long AddressId { get; set; }
    /// <summary>
    /// 状态（0正常/审核成功 1停用 2待审核 3审核失败 4待发货 5待收货 6已完成 ）
    /// </summary>
    public string? Status { get; set; }

    /// <summary>
    /// 产品名称
    /// </summary>
    public string? ProductTitle { get; set; }
    /// <summary>
    /// 产品类型（1新品 2往期 3体验）
    /// </summary>
    public string? ProductCategory { get; set; }

    /// <summary>
    /// 用户邮箱
    /// </summary>
    public string? UserEmail { get; set; }
    /// <summary>
    /// 用户名
    /// </summary>
    public string? UserName { get; set; }
    /// <summary>
    /// 用户昵称
    /// </summary>
    public string? UserNick { get; set; }
    /// <summary>
    /// 用户类型（00普通用户）
    /// </summary>
    public string? UserType { get; set; }
    /// <summary>
    /// 用户性别（0男 1女 2未知）
    /// </summary>
    public string? UserSex { get; set; }
    /// <summary>
    /// 用户手机号
    /// </summary>
    public string? UserPhone { get; set; }

    /// <summary>
    /// 州
    /// </summary>
    public string? AddressState { get; set; }
    /// <summary>
    /// 城市
    /// </summary>
    public string? AddressCity { get; set; }
    /// <summary>
    /// 省
    /// </summary>
    public string? AddressProvince { get; set; }
    /// <summary>
    /// 地区
    public string? AddressRegion { get; set; }
    /// <summary>
    /// 国家
    /// </summary>
    public string? AddressCountry { get; set; }
    /// <summary>
    /// 邮政编号
    /// </summary>
    public string? AddressZipCode { get; set; }
    /// <summary>
    /// 收件人
    /// </summary>
    public string? AddressName { get; set; }
    /// <summary>
    /// 收件人邮箱
    /// </summary>
    public string? AddressEmail { get; set; }
    /// <summary>
    /// 收件人手机号
    /// </summary>
    public string? AddressPhone { get; set; }

    /// <summary>
    /// 开始时间
    /// </summary>
    public DateTime? BeginDate { get; set; }
    /// <summary>
    /// 结束时间
    /// </summary>
    public DateTime? EndDate { get; set; }
    /// <summary>
    /// 创建人
    /// </summary>
    public string? CreateBy { get; set; }
    /// <summary>
    /// 更新人
    /// </summary>
    public string? UpdateBy { get; set; }
    /// <summary>
    /// 排序字段
    /// </summary>
    public string OrderBy { get; set; } = string.Empty;
    /// <summary>
    /// 是否倒序
    /// </summary>
    public bool IsDesc { get; set; }
    /// <summary>
    /// 当前页
    /// </summary>
    [Required(ErrorMessage = "当前页数不能为空")]
    public int PageIndex { get; set; }
    /// <summary>
    /// 每页条数
    /// </summary>
    [Required(ErrorMessage = "每页条数不能为空")]
    public int PageSize { get; set; }
}